You assign a value to a variable like this:
var strname = "Hege" |
Or like this:
strname = "Hege" |
The variable name is on the left side of the expression and the value you want to assign to the variable is on the right. Now the variable "strname" has the value "Hege"
#Title: JavaScript Variables
#Element: 79: JavaScript Variables